Metinden DOCX Oluştur
Metinden yeni bir Word belgesi oluşturmak da basittir. Bir paragraf, tablo veya bölüm gibi herhangi bir belge yapı nesnesini geçirerek yeni bir Word belgesi oluşturun. Finally, use the SaveAs method to export the document.
using IronWord;
using IronWord.Models;
// Create textrun
TextContent textRun = new TextContent("Sample text");
Paragraph paragraph = new Paragraph();
paragraph.AddChild(textRun);
// Create a new Word document
WordDocument doc = new WordDocument(paragraph);
// Export docx
doc.SaveAs("document.docx");
Imports IronWord
Imports IronWord.Models
' Create textrun
Private textRun As New TextContent("Sample text")
Private paragraph As New Paragraph()
paragraph.AddChild(textRun)
' Create a new Word document
Dim doc As New WordDocument(paragraph)
' Export docx
doc.SaveAs("document.docx")
Install-Package IronWord
Metinden yeni bir Word belgesi oluşturmak da basittir. Bir paragraf, tablo veya bölüm gibi herhangi bir belge yapı nesnesini geçirerek yeni bir Word belgesi oluşturun. Finally, use the SaveAs method to export the document.